package cn.wolfcode.luowowo.item.mapper;

import cn.wolfcode.luowowo.item.domain.UserItem;
import cn.wolfcode.luowowo.item.query.ItemQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserItem record);

    UserItem selectByPrimaryKey(Long id);

    List<UserItem> selectAll();

    int updateByPrimaryKey(UserItem record);

    List<UserItem> selectForList(@Param("userId") Long userId, @Param("qo") ItemQuery qo);

    UserItem queryForUserIdAndItemName(@Param("userId") Long userId, @Param("name") String name);
}